<!doctype html>

<head>
    <!-- meta -->
    <meta charset="utf-8">
    <meta name="description" content="Flat, Clean, Responsive, admin template built with bootstrap 3">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
    <!-- /meta -->

    <title>心秘籍系统</title>


    <bstablecss />
    <commonheader />
</head>
<body>

<div class="app">
    <section class="layout">

        <div class="panel">
            <header class="panel-heading">组织机构列表</header>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-bordered table-striped">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>用户名</th>
                            <th>邮箱</th>
                            <th>组织名称</th>
                            <th>组织简介</th>
                            <th>操作</th>
                        </tr>
                        </thead>

                        <tbody>

                        <foreach name="rs" item="r">
                            <tr>
                                <td>{$r.oid}</td>
                                <td>{$r.username}</td>
                                <td>{$r.email}</td>
                                <td>{$r.org_name}</td>
                                <td>{$r.org_info}</td>
                                <td><a class="btn-success btn-sm btn setoid mg-r-sm">查看组织信息</a><a class="btn-danger btn-sm btn delete-oid-btn" >删除组织</a></td>
                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </div>
            </div>
            <div class="panel-footer">
                <a class="btn btn-lg btn-primary" id="new-orgnizer-show">新增一个组织</a>
            </div>
        </div>

    </section>

</div>


<!-- 新增组织对话框 -->
<div class="modal fade" id="add-newOrgnizer" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-keyboard="false">
    <div class="modal-dialog" >
        <div class="modal-content">
            <div class="modal-header">
                添加组织用户
            </div>
            <div class="modal-body" >
                <div class="row">
                    <div class="col-md-12">
                        <div class="panel-body">
                            <form role="form">
                                <div class="form-group">
                                    <table class="table">
                                        <thead>
                                        <tr>
                                            <td>用户名</td>
                                            <td>密码</td>
                                            <td>邮箱</td>
                                            <td>年龄</td>
                                            <td>性别</td>
                                        </tr>
                                        </thead>
                                        <tbody id="add-orgnizer-tbody">
                                        <tr>
                                            <td><input class="form-control" type="text" id="add-orgnizer-username" /></td>
                                            <td><input class="form-control" type="text" id="add-orgnizer-userpasswd"/></td>
                                            <td><input class="form-control" type="email" id="add-orgnizer-email"/></td>
                                            <td ><input class="form-control" type="number" id="add-orgnizer-userage"/></td>
                                            <td><input type="radio" name="sex" value="男" class="add-orgnizer-usersex" checked>男
                                                <input type="radio" name="sex" value="女" class="add-orgnizer-usersex">女</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <table class="table">
                                        <thead>
                                        <tr>
                                            <td>组织名称</td>
                                            <td>简介</td>

                                        </tr>
                                        </thead>
                                        <tbody id="">
                                        <tr>
                                            <td><input class="form-control" type="text" id="add-orgnizer-orgnizername" /></td>
                                            <td><input class="form-control" type="text" id="add-orgnizer-orgnizerinfo"/></td>

                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
            <div class="modal-footer" >
                <a class="btn btn-success" id="add-orgnizer-save">保存</a>


            </div>
        </div>

    </div>
</div>

<commonfooter />
<bstablejs />
<jqnestablejs />

<script src="__PUBLIC__/js/tableTools.js"></script>
<script src="__PUBLIC__/js/adminCommon.js"></script>
<script src="__PUBLIC__/js/adminOrgnizerIndex.js"></script>
<script>
    $(document).ready(function(){

    });

</script>


